﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using BLToolkit.DataAccess;

namespace nhannguyentn.Models
{
    [TableName("BlogPosts")]
    public class BlogPostModel : Devsoft.DB.Models.Flat.Model<BlogPostModel>
    {
        [PrimaryKey, Identity]
        public int PostID { get; set; }

        public int CategoryID { get; set; }

        public string Title { get; set; }

        public string Description { get; set; }

        public string PostContent { get; set; }

        public DateTime DateCreated { get; set; }

        public DateTime DateModified { get; set; }

        public bool IsPublished { get; set; }

        public bool IsCommentEnabled { get; set; }

        public int Raters { get; set; }

        public double Rating { get; set; }
    }
}